package cn.wh.ymcc.dto;

import cn.wh.ymcc.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {
    private String imageCode;
    private String imageCodeKey;
    @Pattern(regexp = AssertUtil.phoneReg,message = "手机号不合法")
    private String mobile;
    @Size(min=6,max = 6,message = "验证码必须是 6 位")
    private String smsCode; //输入的手机验证码
    @Size(min=3,max = 6,message = "密码必须是3-6位")
    private String password; //密码
    private Integer regChannel = 1;
}